﻿using CoreProject.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CoreProject.DTO

    //添加dto
{
    public class HJQ_orderDTo
    {
        
    public string OrderId { get; set; } = null!;

        public int UserId { get; set; }
        public string Username { get; set; }

        public DateTime OrderTime { get; set; }

        public string? PaymentMethod { get; set; }

        public decimal TotalAmount { get; set; }

        public string ShippingAddress { get; set; } = null!;

        public string RecipientName { get; set; } = null!;

        public string RecipientPhone { get; set; } = null!;

        public byte OrderStatus { get; set; }

        public DateTime? CreatedAt { get; set; }

        public DateTime? UpdatedAt { get; set; }

        public IEnumerable<HjqOrderDetailDto> HjqOrderDetails { get; set; }
    }

    //添加dto
    public partial class HjqOrderDetailDto
    {
        public int DetailId { get; set; }

        public string OrderId { get; set; } = null!;

        public int ProductId { get; set; }

        public string ProductName { get; set; } = null!;

        public string? ProductCategory { get; set; }

        public string? ProductSpec { get; set; }

        public int Quantity { get; set; }

        public decimal UnitPrice { get; set; }

        public decimal TotalPrice { get; set; }


    }


    //显Dto

  
}
